﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shop.Infrastructure.Paged;

namespace Shop.Infrastructure.MangoDB
{
    public class MangoDBClient
    {
        public static void Save(string key, object value)
        {
            Caching.CacheManager.Provider.Set(key, value, DateTimeOffset.Now.AddDays(10));
        }

        public static T Get<T>(string key)
        {
            
            return Caching.CacheManager.Provider.Get<T>(key);
        }
    }
}
